﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StockImport.dataimport.otc.dailyindex
{
    public class UpdateResult
    {
        private bool urlResult = false;
        private bool updateResult=false;
        private bool contentResult = false;



        private string content="";
        private string message="";
        private string oriRequest="";
        private string storeFileName="";

        public String getMessage()
        {
            return message;
        }
        public bool getContentResult()
        {
            return contentResult;
        }
        public bool getUpdateResult()
        {
            return updateResult;
        }
        public void setUpdateResult(bool p)
        {
            updateResult = p;
        }

        public void setMessage(string p)
        {
            message = p;
        }

        public void setContentResult(bool p)
        {
            contentResult = p;
            
        }

        public void setRequest(string url)
        {
            oriRequest = url;
        }

        public void setUrlResult(bool p)
        {
            urlResult = p;
        }

        public void setContent(string p)
        {
            content = p;

        }



        public  string getContent()
        {
            return this.content;
            
        }
        public bool hasContent()
        {
            if (String.IsNullOrWhiteSpace(content))
                return false;
            return true;
        }

        public  bool getUrlResult()
        {
            return urlResult;
        }



        public  void setStoreFileName(string fileName)
        {
            storeFileName = fileName;
        }
    }
}
